﻿#pragma once
#define WIDE 60
#define HIGH 20

struct BODY
{
	int X;
	int Y;
};
struct SNAKE
{
	int size;//蛇的长度
	struct BODY body[WIDE * HIGH];
}snake;

int food[2] = { 0 };//food[0]为X坐标，food[1]为Y坐标；
int score = 0;
//30.偏移坐标；
int dx = 0;
int dy = 0;
//40.记录蛇尾巴的坐标；
int lx = 0;
int ly = 0;

void InitFood();
void InitSnake();
void ShowUI();
void PlayGame();
void InitWall();
